//
//  ListViewCell.m
//  Mdongying
//
//  Created by mac pro -chenweishuai on 14-3-4.
//  Copyright (c) 2014年 伟帅陈. All rights reserved.
//

#import "ListViewCell.h"

@implementation ListViewCell
@synthesize backView=_backView,leftImageV=_leftImageV,iconView=_iconView,nameLab=_nameLab,numLab=_numLab,lightImageV = _lightImageV,rightLightImageV = _rightLightImageV,jiantouImageV=_jiantouImageV;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        
        _backView = [[UIView alloc] initWithFrame:CGRectMake(0,0,160,30)];
        _backView.backgroundColor = [UIColor whiteColor];
        [self addSubview:_backView];
        [_backView release];
        
        _leftImageV = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 2, 30)];
        _leftImageV.backgroundColor = [UIColor clearColor];
        [_backView addSubview:_leftImageV];
        [_leftImageV release];
        
        _lightImageV = [[UIImageView alloc]initWithFrame:CGRectMake(0,29,160,1)];
        _lightImageV.backgroundColor = RGBCOLOR(229.0,226.0,225.0);
        [_backView addSubview:_lightImageV];
        [_lightImageV release];

        _rightLightImageV = [[UIImageView alloc]initWithFrame:CGRectMake(159,0,1,30)];
        _rightLightImageV.backgroundColor = RGBCOLOR(229.0,226.0,225.0);
        [_backView addSubview:_rightLightImageV];
        [_rightLightImageV release];

        //icon
        _iconView =[[UIImageView alloc] initWithFrame:CGRectMake(10,5,20,30)];
        [_backView addSubview:_iconView];
        _iconView.backgroundColor = [UIColor clearColor];
        [_iconView release];
//        _iconView.image = [AppUtility getLocalImage:@"cou_icon_dianing1"];
        
        //name
        _nameLab = [[UILabel alloc] initWithFrame:CGRectMake(30,5, 100, 20)];
        _nameLab.backgroundColor = [UIColor clearColor];
        _nameLab.font = [UIFont systemFontOfSize:12];
        _nameLab.textColor = [UIColor blackColor];
        [_backView addSubview:_nameLab];
        [_nameLab release];
        
        //num
        _numLab = [[UILabel alloc] initWithFrame:CGRectMake(80,5, 60, 20)];
        _numLab.backgroundColor = [UIColor clearColor];
        _numLab.font = [UIFont systemFontOfSize:12];
        _numLab.textAlignment = NSTextAlignmentRight;
        _numLab.textColor = RGBCOLOR(137.0,132.0,128.0);
        [_backView addSubview:_numLab];
        [_numLab release];
        
        //jiantou
        _jiantouImageV =[[UIImageView alloc] initWithFrame:CGRectMake(145,15,6,9)];
        [_backView addSubview:_jiantouImageV];
        _jiantouImageV.backgroundColor = [UIColor clearColor];
        _jiantouImageV.image = [AppUtility getLocalImage:@"cou_icon_jiantou"];
        [_jiantouImageV release];


    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
